package com.example.wlzz.repository.mongoRepository;

import com.example.wlzz.entity.mongoEntity.Subreview;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface SubreviewRepository extends MongoRepository<Subreview,String>{
    Page<Subreview> findByCommentIdAndDelFlag(String commentId, int del_flag, Pageable pageable);
    Subreview findBy_idAndDelFlag(String _id,int del_flag);
}
